<?

include "../config.php" ;

$id=$_GET["id"] ;
@$txt=$_GET["txt"] ;
$txt=htmlspecialchars($txt,ENT_QUOTES) ;



doConnectDb() ;


$q="select * from student where id_student=".$id  ;
$r=mysql_query($q) ;
$row=mysql_fetch_array($r) ;
$g=$row["id_grp"] ; 



$q="insert into user_ban (id_user_real,id_user_forum,date_ban,Comment) values (".$id. ",-1,'".(date('Y-m-d'))."','".$txt."')" ;

mysql_query($q) ;

echo "<html><head><title>...</title>" ;
echo '<meta http-equiv="Refresh" content="2; url=moder_block.php?id_grp='.$g.'">' ;
echo '<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">' ;
echo '</head><body>...</body></html>'; 


?>

